package com.vogue.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vogue.api.data.CateringUser;
import com.vogue.api.common.security.model.Oauth2User;
import com.vogue.api.common.security.model.UserInfo;

/**
 * 用户记录表
 * @author George<qiaozhi_china@163.com>
 */
public interface CateringUserService extends IService<CateringUser>{

    /*----------------------------Oauth2方案-------------------------------*/
    Oauth2User findImUserByUserAccount(String userAccount);

    Oauth2User findImUserByUserOpenId(String openId, UserInfo userInfo);

    Oauth2User loadUserByMobileAndPassword(String mobile, String password);

    Oauth2User loadUserByMobileAndSmsCode(String mobile);
}
